import request from '@/axios/request'
import url from '@/axios/url'
const { mesUrl, adminUrl } = url()
// 导出url
export const exportUrl = `${mesUrl}mesProdOtherCodeReprint/export`
// 分页查询
export function getList (params = {}) {
  return request({
    url: `${mesUrl}mesProdOtherCodeReprint`,
    method: 'get',
    params
  })
}
// 新增
export function rowCreate (data = {}) {
  return request({
    url: `${mesUrl}mesProdOtherCodeReprint`,
    method: 'post',
    data
  })
}
// 修改
export function rowUpdate (data = {}) {
  return request({
    url: `${mesUrl}mesProdOtherCodeReprint`,
    method: 'put',
    data
  })
}
// 删除
export function rowDel (id) {
  return request({
    url: `${mesUrl}mesProdOtherCodeReprint/${id}`,
    method: 'put'
  })
}
// 详情
export function rowDetail (id) {
  return request({
    url: `${mesUrl}mesProdOtherCodeReprint/info/${id}`,
    method: 'get'
  })
}
// 审核
export function examine (data = {}) {
  return request({
    url: `${mesUrl}mesProdOtherCodeReprint/examine`,
    method: 'post',
    data
  })
}
// 查询系统建模列表
export function getModelingList (params) {
  return request({
    url: `${adminUrl}baseFactoryModeling/children`,
    method: 'get',
    params
  })
}
